<%@ page import="jakarta.servlet.http.Cookie" %><%--
  Created by IntelliJ IDEA.
  User: wenze-zero
  Date: 2021-06-01-001
  Time: 下午 07:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        String str="666";
        Cookie cookie=new Cookie("number",str);
        cookie.setMaxAge(600);
        response.addCookie(cookie);
        out.print("添加成功！");
    %>
</body>
</html>
